package com.sim.simserial.di

import com.sim.serialport.library.seria.DataStore
import com.sim.serialport.library.seria.DataStoreImpl
import com.sim.simserial.navigation.MainNavigator
import com.sim.simserial.navigation.impl.MainNavigatorImpl
import dagger.Binds
import dagger.Module
import dagger.hilt.InstallIn
import dagger.hilt.components.SingletonComponent
import javax.inject.Singleton

@Module
@InstallIn(SingletonComponent::class)
interface AppModule {
    @Singleton
    @Binds
    fun bindMainNavigator(mainNavigator: MainNavigatorImpl): MainNavigator

    @Singleton
    @Binds
    fun bindDataStorage(dataStoreImpl: DataStoreImpl): DataStore

}